package com.bright.utils;

import java.util.HashMap;
import java.util.Map;

public class AjaxResult{
    private static final long serialVersionUID = 3637122497350396679L;

    private boolean success;
    private String msg;
    private Map<String,Object> data = new HashMap<>();

    public AjaxResult(boolean success, String msg, Map<String, Object> data) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "AxiosResult{" +
                "success=" + success +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
